<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <title>更改信息</title>
</head>
<body>

<h1>更改信息</h1>
<form class="form-horizontal" role="form" style="padding-top: 100px;"  method="post" th:action="@{/update}" >
    <input type="hidden" name="id" th:value="${message.getId()}">
    <div class="form-group">
        <label for="firstname" class="col-sm-2 control-label">更换标题</label>
        <div class="col-sm-3">
            <input type="text" class="form-control" id="firstname"
                   name="title"
                   th:value="${message.getTitle()}">
        </div>
        <br>

    </div>
    <div class="form-group">
        <label  for="firstname" class="col-sm-2 control-label">更改内容</label>
        <div class="col-sm-3">
            <textarea class="form-control" name="content" th:text="${message.getContent()}" ></textarea>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-3">
            <button type="submit" class="btn btn-default" >提交</button>
        </div>
    </div>
</form>
​
</body>
</html>